import request from '@/utils/request'

// 查询股票基础信息列表
export function listStockBaseInfor(query) {
  return request({
    url: '/invest/stockBaseInfor/list',
    method: 'get',
    params: query
  })
}

// 查询股票基础信息详细
export function getStockBaseInfor(id) {
  return request({
    url: '/invest/stockBaseInfor/' + id,
    method: 'get'
  })
}

// 新增股票基础信息
export function addStockBaseInfor(data) {
  return request({
    url: '/invest/stockBaseInfor',
    method: 'post',
    data
  })
}

// 修改股票基础信息
export function updateStockBaseInfor(data) {
  return request({
    url: '/invest/stockBaseInfor',
    method: 'put',
    data
  })
}

// 删除股票基础信息
export function delStockBaseInfor(id) {
  return request({
    url: '/invest/stockBaseInfor/' + id,
    method: 'delete'
  })
}
